3.86 \(\int \frac {\sec (e+f x) (c-c \sec (e+f x))^{7/2}}{a+a \sec (e+f x)} \, dx\)

Optimal. Leaf size=142 \[ \frac {128 c^4 \tan (e+f x)}{5 a f \sqrt {c-c \sec (e+f x)}}+\frac {32 c^3 \tan (e+f x) \sqrt {c-c \sec (e+f x)}}{5 a f}+\frac {12 c^2 \tan (e+f x) (c-c \sec (e+f x))^{3/2}}{5 a f}+\frac {2 c \tan (e+f x) (c-c \sec (e+f x))^{5/2}}{f (a \sec (e+f x)+a)} \]

[Out]

12/5*c^2*(c-c*sec(f*x+e))^(3/2)*tan(f*x+e)/a/f+2*c*(c-c*sec(f*x+e))^(5/2)*tan(f*x+e)/f/(a+a*sec(f*x+e))+128/5*
c^4*tan(f*x+e)/a/f/(c-c*sec(f*x+e))^(1/2)+32/5*c^3*(c-c*sec(f*x+e))^(1/2)*tan(f*x+e)/a/f

________________________________________________________________________________________

Rubi [A]  time = 0.23, antiderivative size = 142, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 34, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.088, Rules used = {3954, 3793, 3792} \[ \frac {128 c^4 \tan (e+f x)}{5 a f \sqrt {c-c \sec (e+f x)}}+\frac {32 c^3 \tan (e+f x) \sqrt {c-c \sec (e+f x)}}{5 a f}+\frac {12 c^2 \tan (e+f x) (c-c \sec (e+f x))^{3/2}}{5 a f}+\frac {2 c \tan (e+f x) (c-c \sec (e+f x))^{5/2}}{f (a \sec (e+f x)+a)} \]

Antiderivative was successfully verified.

[In]

Int[(Sec[e + f*x]*(c - c*Sec[e + f*x])^(7/2))/(a + a*Sec[e + f*x]),x]

[Out]

(128*c^4*Tan[e + f*x])/(5*a*f*Sqrt[c - c*Sec[e + f*x]]) + (32*c^3*Sqrt[c - c*Sec[e + f*x]]*Tan[e + f*x])/(5*a*
f) + (12*c^2*(c - c*Sec[e + f*x])^(3/2)*Tan[e + f*x])/(5*a*f) + (2*c*(c - c*Sec[e + f*x])^(5/2)*Tan[e + f*x])/
(f*(a + a*Sec[e + f*x]))

Rule 3792

Int[csc[(e_.) + (f_.)*(x_)]*Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Simp[(-2*b*Cot[e + f*x])/
(f*Sqrt[a + b*Csc[e + f*x]]), x] /; FreeQ[{a, b, e, f}, x] && EqQ[a^2 - b^2, 0]

Rule 3793

Int[csc[(e_.) + (f_.)*(x_)]*(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_), x_Symbol] :> -Simp[(b*Cot[e + f*x]*(a
 + b*Csc[e + f*x])^(m - 1))/(f*m), x] + Dist[(a*(2*m - 1))/m, Int[Csc[e + f*x]*(a + b*Csc[e + f*x])^(m - 1), x
], x] /; FreeQ[{a, b, e, f}, x] && EqQ[a^2 - b^2, 0] && GtQ[m, 1/2] && IntegerQ[2*m]

Rule 3954

Int[csc[(e_.) + (f_.)*(x_)]*(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_)*(csc[(e_.) + (f_.)*(x_)]*(d_.) + (c_))
^(n_.), x_Symbol] :> Simp[(2*a*c*Cot[e + f*x]*(a + b*Csc[e + f*x])^m*(c + d*Csc[e + f*x])^(n - 1))/(b*f*(2*m +
 1)), x] - Dist[(d*(2*n - 1))/(b*(2*m + 1)), Int[Csc[e + f*x]*(a + b*Csc[e + f*x])^(m + 1)*(c + d*Csc[e + f*x]
)^(n - 1), x], x] /; FreeQ[{a, b, c, d, e, f}, x] && EqQ[b*c + a*d, 0] && EqQ[a^2 - b^2, 0] && IGtQ[n - 1/2, 0
] && LtQ[m, -2^(-1)]

Rubi steps

\begin {align*} \int \frac {\sec (e+f x) (c-c \sec (e+f x))^{7/2}}{a+a \sec (e+f x)} \, dx &=\frac {2 c (c-c \sec (e+f x))^{5/2} \tan (e+f x)}{f (a+a \sec (e+f x))}-\frac {(6 c) \int \sec (e+f x) (c-c \sec (e+f x))^{5/2} \, dx}{a}\\ &=\frac {12 c^2 (c-c \sec (e+f x))^{3/2} \tan (e+f x)}{5 a f}+\frac {2 c (c-c \sec (e+f x))^{5/2} \tan (e+f x)}{f (a+a \sec (e+f x))}-\frac {\left (48 c^2\right ) \int \sec (e+f x) (c-c \sec (e+f x))^{3/2} \, dx}{5 a}\\ &=\frac {32 c^3 \sqrt {c-c \sec (e+f x)} \tan (e+f x)}{5 a f}+\frac {12 c^2 (c-c \sec (e+f x))^{3/2} \tan (e+f x)}{5 a f}+\frac {2 c (c-c \sec (e+f x))^{5/2} \tan (e+f x)}{f (a+a \sec (e+f x))}-\frac {\left (64 c^3\right ) \int \sec (e+f x) \sqrt {c-c \sec (e+f x)} \, dx}{5 a}\\ &=\frac {128 c^4 \tan (e+f x)}{5 a f \sqrt {c-c \sec (e+f x)}}+\frac {32 c^3 \sqrt {c-c \sec (e+f x)} \tan (e+f x)}{5 a f}+\frac {12 c^2 (c-c \sec (e+f x))^{3/2} \tan (e+f x)}{5 a f}+\frac {2 c (c-c \sec (e+f x))^{5/2} \tan (e+f x)}{f (a+a \sec (e+f x))}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.74, size = 86, normalized size = 0.61 \[ -\frac {c^3 (245 \cos (e+f x)+86 \cos (2 (e+f x))+91 \cos (3 (e+f x))+90) \cot \left (\frac {1}{2} (e+f x)\right ) \sec ^2(e+f x) \sqrt {c-c \sec (e+f x)}}{10 a f (\cos (e+f x)+1)} \]

Antiderivative was successfully verified.

[In]

Integrate[(Sec[e + f*x]*(c - c*Sec[e + f*x])^(7/2))/(a + a*Sec[e + f*x]),x]

[Out]

-1/10*(c^3*(90 + 245*Cos[e + f*x] + 86*Cos[2*(e + f*x)] + 91*Cos[3*(e + f*x)])*Cot[(e + f*x)/2]*Sec[e + f*x]^2
*Sqrt[c - c*Sec[e + f*x]])/(a*f*(1 + Cos[e + f*x]))

________________________________________________________________________________________

fricas [A]  time = 0.44, size = 88, normalized size = 0.62 \[ -\frac {2 \, {\left (91 \, c^{3} \cos \left (f x + e\right )^{3} + 43 \, c^{3} \cos \left (f x + e\right )^{2} - 7 \, c^{3} \cos \left (f x + e\right ) + c^{3}\right )} \sqrt {\frac {c \cos \left (f x + e\right ) - c}{\cos \left (f x + e\right )}}}{5 \, a f \cos \left (f x + e\right )^{2} \sin \left (f x + e\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(f*x+e)*(c-c*sec(f*x+e))^(7/2)/(a+a*sec(f*x+e)),x, algorithm="fricas")

[Out]

-2/5*(91*c^3*cos(f*x + e)^3 + 43*c^3*cos(f*x + e)^2 - 7*c^3*cos(f*x + e) + c^3)*sqrt((c*cos(f*x + e) - c)/cos(
f*x + e))/(a*f*cos(f*x + e)^2*sin(f*x + e))

________________________________________________________________________________________

giac [A]  time = 2.66, size = 112, normalized size = 0.79 \[ -\frac {8 \, \sqrt {2} c^{3} {\left (\frac {5 \, \sqrt {c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - c}}{a} - \frac {15 \, {\left (c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - c\right )}^{2} c + 5 \, {\left (c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - c\right )} c^{2} + c^{3}}{{\left (c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - c\right )}^{\frac {5}{2}} a}\right )}}{5 \, f} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(f*x+e)*(c-c*sec(f*x+e))^(7/2)/(a+a*sec(f*x+e)),x, algorithm="giac")

[Out]

-8/5*sqrt(2)*c^3*(5*sqrt(c*tan(1/2*f*x + 1/2*e)^2 - c)/a - (15*(c*tan(1/2*f*x + 1/2*e)^2 - c)^2*c + 5*(c*tan(1
/2*f*x + 1/2*e)^2 - c)*c^2 + c^3)/((c*tan(1/2*f*x + 1/2*e)^2 - c)^(5/2)*a))/f

________________________________________________________________________________________

maple [A]  time = 1.76, size = 83, normalized size = 0.58 \[ -\frac {2 \left (91 \left (\cos ^{3}\left (f x +e \right )\right )+43 \left (\cos ^{2}\left (f x +e \right )\right )-7 \cos \left (f x +e \right )+1\right ) \cos \left (f x +e \right ) \left (\frac {c \left (-1+\cos \left (f x +e \right )\right )}{\cos \left (f x +e \right )}\right )^{\frac {7}{2}}}{5 a f \sin \left (f x +e \right ) \left (-1+\cos \left (f x +e \right )\right )^{3}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sec(f*x+e)*(c-c*sec(f*x+e))^(7/2)/(a+a*sec(f*x+e)),x)

[Out]

-2/5/a/f*(91*cos(f*x+e)^3+43*cos(f*x+e)^2-7*cos(f*x+e)+1)*cos(f*x+e)*(c*(-1+cos(f*x+e))/cos(f*x+e))^(7/2)/sin(
f*x+e)/(-1+cos(f*x+e))^3

________________________________________________________________________________________

maxima [A]  time = 0.69, size = 163, normalized size = 1.15 \[ \frac {8 \, {\left (16 \, \sqrt {2} c^{\frac {7}{2}} - \frac {56 \, \sqrt {2} c^{\frac {7}{2}} \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac {70 \, \sqrt {2} c^{\frac {7}{2}} \sin \left (f x + e\right )^{4}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{4}} - \frac {35 \, \sqrt {2} c^{\frac {7}{2}} \sin \left (f x + e\right )^{6}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{6}} + \frac {5 \, \sqrt {2} c^{\frac {7}{2}} \sin \left (f x + e\right )^{8}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{8}}\right )}}{5 \, a f {\left (\frac {\sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + 1\right )}^{\frac {7}{2}} {\left (\frac {\sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} - 1\right )}^{\frac {7}{2}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(f*x+e)*(c-c*sec(f*x+e))^(7/2)/(a+a*sec(f*x+e)),x, algorithm="maxima")

[Out]

8/5*(16*sqrt(2)*c^(7/2) - 56*sqrt(2)*c^(7/2)*sin(f*x + e)^2/(cos(f*x + e) + 1)^2 + 70*sqrt(2)*c^(7/2)*sin(f*x
+ e)^4/(cos(f*x + e) + 1)^4 - 35*sqrt(2)*c^(7/2)*sin(f*x + e)^6/(cos(f*x + e) + 1)^6 + 5*sqrt(2)*c^(7/2)*sin(f
*x + e)^8/(cos(f*x + e) + 1)^8)/(a*f*(sin(f*x + e)/(cos(f*x + e) + 1) + 1)^(7/2)*(sin(f*x + e)/(cos(f*x + e) +
 1) - 1)^(7/2))

________________________________________________________________________________________

mupad [B]  time = 6.33, size = 164, normalized size = 1.15 \[ -\frac {2\,c^3\,\sqrt {c-\frac {c}{\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}}{2}}}\,\left ({\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,86{}\mathrm {i}+{\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}\,245{}\mathrm {i}+{\mathrm {e}}^{e\,3{}\mathrm {i}+f\,x\,3{}\mathrm {i}}\,180{}\mathrm {i}+{\mathrm {e}}^{e\,4{}\mathrm {i}+f\,x\,4{}\mathrm {i}}\,245{}\mathrm {i}+{\mathrm {e}}^{e\,5{}\mathrm {i}+f\,x\,5{}\mathrm {i}}\,86{}\mathrm {i}+{\mathrm {e}}^{e\,6{}\mathrm {i}+f\,x\,6{}\mathrm {i}}\,91{}\mathrm {i}+91{}\mathrm {i}\right )}{5\,a\,f\,\left ({\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}-1\right )\,{\left ({\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}+1\right )}^2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((c - c/cos(e + f*x))^(7/2)/(cos(e + f*x)*(a + a/cos(e + f*x))),x)

[Out]

-(2*c^3*(c - c/(exp(- e*1i - f*x*1i)/2 + exp(e*1i + f*x*1i)/2))^(1/2)*(exp(e*1i + f*x*1i)*86i + exp(e*2i + f*x
*2i)*245i + exp(e*3i + f*x*3i)*180i + exp(e*4i + f*x*4i)*245i + exp(e*5i + f*x*5i)*86i + exp(e*6i + f*x*6i)*91
i + 91i))/(5*a*f*(exp(e*2i + f*x*2i) - 1)*(exp(e*2i + f*x*2i) + 1)^2)

________________________________________________________________________________________

sympy [F(-1)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(f*x+e)*(c-c*sec(f*x+e))**(7/2)/(a+a*sec(f*x+e)),x)

[Out]

Timed out

________________________________________________________________________________________